﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using AP.Framework.Infrastructure.Repositories.IRepositories;

namespace AP.Web.Controllers
{
    public class LinksController : Controller
    {
        ILink _link;
        public LinksController(ILink link)
        {
            _link = link;
        }
        public ActionResult Index()
        {
            var linkList = _link.GetAll().OrderBy(p => p.Sequence).ToList();
            return View(linkList);
        }

    }
}
